Also fix blatant lie in File::pageCount()
* (bug 26006) prop=langlinks now allows obtaining full URL
* (bug 26075) ApiDelete.php now calls correctly ArticleDelete hook
* (bug 26089) add block expiration to blockinfo
+* (bug 26125) prop=imageinfo&iiprop=size now returns the page count if the
+ file is a multi-page file
=== Languages updated in 1.17 ===
$vals['size'] = intval( $file->getSize() );
$vals['width'] = intval( $file->getWidth() );
$vals['height'] = intval( $file->getHeight() );
+
+ $pageCount = $file->pageCount();
+ if ( $pageCount !== false ) {
+ $vals['pagecount'] = $pageCount;
+ }
}
if ( isset( $prop['url'] ) ) {
if ( !is_null( $scale ) && !$file->isOld() ) {
}
/**
- * Returns the number of pages of a multipage document, or NULL for
+ * Returns the number of pages of a multipage document, or false for
* documents which aren't multipage documents
*/
function pageCount() {